<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2018/12/24
 * Time: 14:55
 */

namespace app\api\validate;


class TongdunParam extends BaseValidate
{
    protected $rule = [
        'name' => 'require',
        'mobile' => 'require|mobile',
        'id_number' => 'require|idCard'
    ];

    protected $message = [
        'name.require' => '名字必须',
        'mobile.require' => '手机号码必须',
        'mobile.mobile' => '手机号码格式不正确',
        'idCard.require' => '身份证号码必须',
        'idCard.id_number' => '身份证号码格式不正确'
    ];
}